<?php
   $arr=array(1,2,3,4);
   echo array_shift($arr);
   print_r($arr);
   echo "<br>";
   
   $arr1=array("a"=>"one","b"=>"two","c"=>"three");
   echo array_shift($arr1);
   print_r($arr1);